/*
 * Copyright (c) 2018-2025, duneng All rights reserved.
 *
 * Author: wq (meteor85@163.com)
 */
import request from '@/router/axios'

export function addObj(obj) {
    return request({
        url: '/admin/sensorManage/add/',
        method: 'post',
        data: obj
    })
}

export function fetchList(query) {
    return request({
        url: '/admin/sensorManage/sensorPage',
        method: 'get',
        params: query
    })
}

export function getObj(id) {
    return request({
        url: '/admin/sensorManage/'+id,
        method: 'get',
    })
}

export function putObj(obj) {
    return request({
        url: '/admin/sensorManage/edit',
        method: 'put',
        data: obj
    })
}

export function delObj(id) {
    return request({
        url: '/admin/sensorManage/' + id,
        method: 'delete'
    })
}